/* 
 * Barra de herramientas del entorno grafico
 */
Ext.define('KMA.view.environment.Toolbar',{
    extend: 'Ext.toolbar.Toolbar',
    alias: 'widget.environmenttoolbar',
    
    initComponent: function(){
        this.border = '0 0 0 0';
        this.items = [
            {
                text: 'Aplicación',
                menu: {
                    items: [
                        {text: 'Inicio', action: 'started', iconCls: 'ico-app'},
                        {text: 'Salir', action: 'exit', iconCls: 'ico-exit'}
                    ]
                }
            },
            {
                text: 'Reportes',
                menu: {
                    items: [
                        {text: 'Platos', action: 'informePlato', iconCls: 'ico-cup'},
                        {text: 'Grilla', iconCls: 'ico-table'}
                    ]
                }
            },
            {
                text: 'Ayuda',
                menu: {
                    items: [
                        {text: 'Indice', iconCls: 'ico-help'},
                        {text: 'Bugs', iconCls: 'ico-bug'},
                        {text: 'Acerca de...', iconCls: 'ico-about'}
                    ]
                }
            }
        ];
        
        this.callParent(arguments);
        
    }
})